package com.yh.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.yh.bean.Game;
import com.yh.bean.GameClass;
import com.yh.bean.GameZone;
import com.yh.bean.Game_GameZone;
import com.yh.bean.Goods;
import com.yh.bean.GoodsClass;
import com.yh.dao.GameClassDao;
import com.yh.service.GameClassService;

@Service
public class GameClassImpl implements GameClassService {
	@Autowired
	private GameClassDao gameClassDao;
	@Override
	public List<GameClass> queryGameClass() {
		// TODO Auto-generated method stub
		List<GameClass> gameClassList=gameClassDao.getGameClass();
		return gameClassList;
	}
	@Override
	public List<Game> queryGameBygId(int gcId) {
		// TODO Auto-generated method stub
		List<Game> gameList=gameClassDao.getGame(gcId);
		return gameList;
	}
	@Override
	public List<GameZone> queryGameZone(int game_id) {
		// TODO Auto-generated method stub
		List<GameZone> gameZoneList=gameClassDao.getGameZone(game_id);
		return gameZoneList ;
	}
	@Override
	public List<GoodsClass> queryGoodsClass(int gzId) {
		// TODO Auto-generated method stub
		List<GoodsClass> goodsClassList=gameClassDao.getGoodsClass(gzId);
		return goodsClassList ;
	}
	@Override
	public List<Goods> queryGoods(int gcId) {
		// TODO Auto-generated method stub
		List<Goods> goosdList=gameClassDao.getGoods(gcId);		
		return goosdList ;
	}
	@Override
	public int getId(int id) {
		// TODO Auto-generated method stub
		
		int num=gameClassDao.getId(id);
		return num;
	}
	@Override
	public Goods queryGoodS(int gid) {
		// TODO Auto-generated method stub
		Goods goods=gameClassDao.getGoodS(gid);
		return goods ;
	}



}
